

<!--
头部代码
 -->
<title><?php if(!empty($seo_title)){?><?=$seo_title?><?php }else{?><?=$site_title?><?php }?></title> 
<?php if(!empty($seo_keywords)){ ?><meta name="keywords" content="<?=$seo_keywords?>" /><?php }?> 
<?php if(!empty($seo_description)){ ?><meta name="description" content="<?=$seo_description?>" /><?php }?> 
<?php if(!empty($seo_author)){ ?><meta content="<?=$seo_author?>" name="author"><?php }?> 
<?php if(!empty($seo_copyright)){ ?><meta content="<?=$seo_copyright?>" name="copyright"><?php }?> 




<!--
主导航代码
 -->
<a href="/" target="_self" class="menumain">首页</a>
<?php foreach($article_tree_category as $k => $v) {?>
	<?php if(!isset($v['display']) || $v['display'] != 4){?>
		<?php if(!isset($v['gourl']) || empty($v['gourl'])){?>
			<a href="<?=SITE_PATH?>/<?=$v['main_tpl']?>/<?=$k?>.html" class="menumain"><?=$v['name']?></a>
		<?php }else{?>
			<a href="<?=$v['gourl']?>" class="menumain"><?=$v['name']?></a>
		<?php }?>
	<?php }?>
<?php }?>



<!--
文章系统，读取当然分类信息
 -->
<?php $CAT = $article_category[$category]; ?>




<!--
产品分类导航代码
 -->
<?php foreach($product_tree_category as $k => $v){?>
<a href="/<?=$v['list_tpl']?>/<?=$k?>.html" target="_self" class="productclass_dolphin"><?=$v['name']?></a>
<?php }?>


<!--
产品系统，读取当前分类信息
 -->
<?php $CAT = $product_category[$category]; ?>


<!--
产品系统，读取列表数据
 -->
<?php $list = tpl_product_list('limit=7&page=' . $page);$data = $list['list'];?>

<!--
产品系统，显示已经读取列表数据
 -->
<?php if(is_array($data)&&count($data))foreach($data as $k => $v){?>

	<a href="/<?=$CAT['detailed_tpl']?>/<?=$v['category']?>/<?=$v['key']?>.html" target="_self" ><img src="<?=SITE_PATH?>/<?=$v['ptitle']?>" style="width:150px;height:113px" border="0" /></a>
	<a href="/<?=$CAT['detailed_tpl']?>/<?=$v['category']?>/<?=$v['key']?>.html" target="_self"   class="prodtitle"><?=$v['name']?></a>

<?php }?>


<!--
产品系统，产品列表分页数据
 -->
<?php $m = $list['page'];?>
<?php if($m['total_row'] > $m['limit']) {?>
<div id="showpages" >
  <div id="pagesinfo">共<?=$m['total_row']?>条 每页<?=($m['limit']+1)?>条 页次：<?=$m['current_page']?>/<?=$m['total_page']?></div>
  <div id="pages">
    <ul>
      <li class="pbutton"><a href="<?=SITE_PATH?>/<?=$CAT['list_tpl']?>/<?=$category?>/1.html">首页</a></li>
      <li class="pbutton"><a href="<?=SITE_PATH?>/<?=$CAT['list_tpl']?>/<?=$category?>/<?=$m['up_page']?>.html">上一页</a></li>
	  
		<?php if(count($m['link']))foreach($m['link'] as $k => $n) {?>
		<?php if ($n != $m['current_page']){?>
			<li class="pagesnow"><a href="<?=SITE_PATH?>/<?=$CAT['list_tpl']?>/<?=$category?>/<?=$n?>.html"> <?=$n?> </a></li>
		<?php }else{ ?>
			<li class="pagesnow"> <?=$n?> </li>
		<?php } ?>
		<?php } ?>
		
      <li class="pbutton"><a href="<?=SITE_PATH?>/<?=$CAT['list_tpl']?>/<?=$category?>/<?=$m['next_page']?>.html">下一页</a></li>
      
      <li class="pbutton"><a href="<?=SITE_PATH?>/<?=$CAT['list_tpl']?>/<?=$category?>/<?=$m['total_page']?>.html">尾页</a></li>
    </ul>
  </div>
</div>
<?php } ?>


<!--
加载客服系统，此代码放在网站底部，该代码需要在JQuery的基础上运行
 -->
<?php if(!empty($display_guest) && $display_guest == '1'){?>
<style type="text/css">
<!--
#message_box {position: absolute;top: 0;right: 0;z-index: 88;background:#E7E7E7;padding:0px;border:1px solid #CCCCCC;text-align:center;font-weight:bold;width:130px;height: 79px;margin-top: 250px;margin-right: 1px;}
-->
</style>
<link rel="stylesheet" href="<?=SITE_PATH?>/skin/thickbox.css" type="text/css" media="screen" />
<script type='text/javascript'>var SITE_PATH = "<?=SITE_PATH?>";</script>
<script language="javascript" type="text/javascript" src="<?=SITE_PATH?>/skin/jq/thickbox.js"></script>
<div id="message_box"><img id="close_message" style="float:right;cursor:pointer"  src="<?=SITE_PATH?>/skin/close.png" /><div><a class="thickbox" title="欢迎给<?=$company_name?>留言，我们将尽快回复你的信息！" href="<?=SITE_PATH?>/tool.php?action=guestbook&height=430&width=600"><img border="0" src="<?=SITE_PATH?>/skin/service.gif" /></a></div></div>
<script language="javascript" type="text/javascript" src="<?=SITE_PATH?>/skin/jq/jquery.service.js"></script>
<?php }?>



<!--
网站统计代码，加在网站底部
 -->
<?php if(!empty($stat_code)){ ?><div style="display:none"><?=$stat_code?></div><?php }?>

<!--
LOGO文件调用
 -->
<img src="<?=SITE_PATH . "/{$logofile}"?>" border="0" />